


var PA = 'ES MX GT';
var url= 'http://track.adjal.com/aff_c?offer_id=';
var _D = new Array();
_D['GT'] = new Array(new Array( url+'2106&aff_id=22098','http://1.bp.blogspot.com/-uabfc6aPbqY/TxXf_Jl5OeI/AAAAAAAACNM/4tpbphXw9qo/s400/boton-descarga-azul.jpg'));
_D['ES'] = new Array(new Array('http://track.adjal.com/aff_c?offer_id=1354&aff_id=22098','http://1.bp.blogspot.com/-uabfc6aPbqY/TxXf_Jl5OeI/AAAAAAAACNM/4tpbphXw9qo/s400/boton-descarga-azul.jpg'));
_D['PA'] = new Array(new Array('http://track.adjal.com/aff_c?offer_id=814&aff_id=22098','http://1.bp.blogspot.com/-uabfc6aPbqY/TxXf_Jl5OeI/AAAAAAAACNM/4tpbphXw9qo/s400/boton-descarga-azul.jpg'));
//Script by Cicklow!

var P = geoip_country_code();



var Divcode= document.getElementById('Divcode');		
Divcode.innerHTML='HOLA';
if(ExPais()){
		var num = Math.floor ( Math.random() * _D[P].length );
	  Divcode.innerHTML='<a href="'+ _D[P][num][0] +'" target="_blank"><img src="'+ _D[P][num][1] +'"></a>';

	}
   
   
   
function MostrarPromo(){
	if(ExPais()){
		var num = Math.floor ( Math.random() * _D[P].length );
		document.write('<a href="'+ _D[P][num][0] +'" target="_blank"><img src="'+ _D[P][num][1] +'"></a>');
	}
}
function retornarHora()
{
  var fecha
  fecha=new Date();
  var cadena=fecha.getHours()+':'+fecha.getMinutes()+':'+fecha.getSeconds();
  return cadena; 
}
function ExPais(){
	if(PA.indexOf(P,PA)>=0) return true;
	return false;
}

